package com.fubowen.lepton.db.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.fubowen.lepton.db.bean.Password

@Dao
interface PasswordDao {
    @Query("select * from Password")
    fun all(): List<Password>

    @Query("select * from Password where Id = :id")
    fun get(id: Int): Password?

    @Insert
    fun set(bean: Password)

    @Update
    fun put(bean: Password)

    @Delete
    fun del(bean: Password)

    @Query("DELETE FROM Password")
    fun clear()

}